package com.dong.demo;

public class FlyTest {
    public static void main(String[] args) {


        Flyer flyer = new Flyer(new Point(100, 150), 6.0);
        Missle missle = new Missle(new Point(0, 0), 15.0, flyer);
            while (!Application.isStop) {
                flyer.fly();
                missle.catchFlyer();
                System.out.println(flyer.getPosition());
                missle.catchFlyer();
                System.out.println(missle.getPosition());
            }

    }
}
